package architect.design.patterns.behavior.command;

/**
 * 写入文件命令
 *
 * @author guanxin
 * @date 2018/5/6 13:21
 */

public class WriteFileCommand implements Command {

    private FileSystemReceiver fileSystem;

    public WriteFileCommand(FileSystemReceiver fs) {
        this.fileSystem = fs;
    }

    @Override
    public void execute() {
        this.fileSystem.writeFile();
    }
}
